package com.itheima.ssm.dao;


import com.itheima.ssm.vo.Permission;

import java.util.List;

public interface PermissionMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);


    //================================================


    public List<Permission> findPermissionByRoleId(String id);

    List<Permission> findAll();

    void save(Permission permission);

    Permission findById(Integer id);

    void deleteFromRole_Permission(Integer id);

    void deleteById(Integer id);
}